package com.ruoyi.project.statistics.service.impl;

import com.ruoyi.project.statistics.domain.Drug;
import com.ruoyi.project.statistics.mapper.DrugMapper;
import com.ruoyi.project.statistics.service.IDrugService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class DrugServiceImpl implements IDrugService {
    @Autowired
    private DrugMapper drugMapper;
    @Override
    public List<Drug> selectByTime(Drug drug) {
        return drugMapper.selectByTime(drug);
    }

    @Override
    public List<Drug> selectByTime2(Drug drug) {
        return drugMapper.selectByTime2(drug);
    }

    @Override
    public List<Drug> selectDrug(String drugName, Date createTime) {
        return drugMapper.selectDrug(drugName, createTime);
    }
}
